package com.ho1ho.springboot.framework.core.auth;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.userdetails.User;

public interface AuthSecurityService {

	String getLoggedInUsername();

	User getLoggedInUser();

	boolean autoLogin(HttpServletRequest request, String username, String password);

	boolean invalidateSession(User user);

	void removeAuthenticationInformation();

	void logout(HttpServletRequest request, HttpServletResponse response);
}
